adTempus API
ArcanaDevelopment.adTempus.Client Namespace / DataContext Class / GetSecurityLogins Method / GetSecurityLogins(LoginType[],Boolean) Method
The type(s) of logins to return
Determines whether permissions are returned with the entities


In This Topic
    GetSecurityLogins(LoginType[],Boolean) Method
    In This Topic
    Gets all security logins for the specified type(s)
    Syntax
    'Declaration
     
    
    <NotNullAttribute()>
    Public Overloads Function GetSecurityLogins( _
       ByVal types() As LoginType, _
       Optional ByVal includePermissions As Boolean _
    ) As SecurityLoginCollection
    [NotNull()]
    public SecurityLoginCollection GetSecurityLogins( 
       LoginType[] types,
       bool includePermissions
    )
    [NotNull()]
    public:
    SecurityLoginCollection^ GetSecurityLogins( 
       array<LoginType>^ types,
       bool includePermissions
    ) 

    Parameters

    types
    The type(s) of logins to return
    includePermissions
    Determines whether permissions are returned with the entities

    Return Value

    All security logins of the specified type(s)
    Remarks

    The caller must have permission to administer security on the adTempus server.

    By default includePermissions is false and this method does not return the permissions associated with the entities (to save processing overhead). This is appropriate if you just want to display the names of the entities. If you subsequently need the permission for an entity, calling SecurityEntity.GetPermissions will fetch the permissions from the server.

    If you know in advance that you will want the permissions for all of the returned objects, it is more efficient to set includePermissions to true to return them all in a single call.

    See Also